//
//  TianJiaBiaoQianViewController.m
//  qiJi
//
//  Created by 凤利史 on 2018/5/3.
//  Copyright © 2018年 sunrose. All rights reserved.
//

#import "TianJiaBiaoQianViewController.h"

@interface TianJiaBiaoQianViewController ()

@end

@implementation TianJiaBiaoQianViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creationView];
    
    // Do any additional setup after loading the view.
}
- (void)creationView{
    
    self.title = @"添加标签";
    //右边item
    UIButton *searchBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, screenScale(40), screenScale(36))];
    [searchBtn setTitle:@"添加" forState:UIControlStateNormal];
    [searchBtn setTitleColor:getColor(@"333333") forState:UIControlStateNormal];
    searchBtn.titleLabel.font = [UIFont systemFontOfSize:14];
    [searchBtn addTarget:self action:@selector(tianJiaClick) forControlEvents:UIControlEventTouchUpInside];
    UIView *threadView = [[UIView alloc]initWithFrame:CGRectMake(0, 1, DEF_SCREEN_WIDTH, 1)];
    threadView.backgroundColor = getColor(@"E6E6E6");
    [self.view addSubview:threadView];
    UIBarButtonItem *rightItme = [[UIBarButtonItem alloc]initWithCustomView:searchBtn];
    self.navigationItem.rightBarButtonItem = rightItme;
    self.view.backgroundColor = getColor(@"E6E6E6");
    UIView *headView = [[UIView alloc] init];
    [self.view addSubview:headView];
    [headView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view);
        make.right.equalTo(self.view);
        make.top.equalTo(self.view);
        make.height.offset(62);
        
    }];
    headView.backgroundColor = [UIColor whiteColor];
    
    UILabel *labe = [[UILabel alloc] init];
    [headView addSubview:labe];
    [labe mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).with.offset(25);
        make.centerY.equalTo(headView);
        
    }];
    labe.text = @"#";
    labe.font = [UIFont systemFontOfSize:13];
    labe.textColor = getColor(@"333333");
    

    
    
}
- (void)tianJiaClick{
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
